package com.shadow.study.test.线程1;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Value;

/**
 * 部结果返回之后的处理
 */
public class ReceiveNotifyHandler {

    @Value("${app.notice}")
    private String noticeEnable;

//    private final PrStage stage;
    private JSONObject notifyData;
    private final Boolean failFuncHandler;

//    /**
//     * 未保证阶段不被重复处理 此类的实例化 仅允许通过 ReceiveNotifyHandlerManage 执行
//     *
//     * @param stage           stage
//     * @param notifyData      notifyData
//     * @param failFuncHandler failFuncHandler
//     */
//    public ReceiveNotifyHandler(PrStage stage, JSONObject notifyData, Boolean failFuncHandler) {
//        this.stage = stage;
//        this.notifyData = notifyData;
//        this.failFuncHandler = failFuncHandler;
//    }

    public ReceiveNotifyHandler(String requestId, JSONObject notifyData, Boolean failFuncHandler) {
        this.notifyData = notifyData;
        this.failFuncHandler = failFuncHandler;
    }

    public void receiveNotify() {
        System.out.println("1");
    }
}
